package com.lanchetech.dao;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Date;

import com.lanchetech.entity.MailboxRead;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface MailboxReadMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MailboxRead record);

    int insertSelective(MailboxRead record);

    MailboxRead selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MailboxRead record);

    int updateByPrimaryKey(MailboxRead record);

    Date selectReadTimeByUserIdAndType(@Param("userId")Long userId,@Param("type")Byte type);

    MailboxRead selectOneByUserIdAndType(@Param("userId")Long userId,@Param("type")Byte type);


}